package com.bcxj.apidriver.client;

import com.bcxj.internalcommon.dto.OrderRequest;
import com.bcxj.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: ServiceOrderClient
 * Package: com.bcxj.apidriver.client
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/23 22:12
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-order")
public interface ServiceOrderClient {
    @PostMapping("/order/to-pick-up-passenger")
    ResponseResult toPickUpPassenger(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/arrived-departure")
    ResponseResult arrivedDeparture(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/pick-up-passenger")
    ResponseResult pickUpPassenger(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/order-getoff")
    ResponseResult orderGetoff(@RequestBody OrderRequest orderRequest);

    @PostMapping("/order/cancel")
    ResponseResult cancel(@RequestParam String orderId, @RequestParam String identity);

    @PostMapping("/order/push-pay-info")
    ResponseResult pushPayInfo(@RequestBody OrderRequest orderRequest);
}
